package com.yzd.learnjava.reusing;

import com.yzd.learnjava.util.Print;

public class Chess extends BoardGame {

	public Chess() {
		super(11);
		Print.print("Chess Constructor");
	}
	public static void main(String[] args) {
		Chess s = new Chess();
	}

}

class Game{
	Game(int i){
		Print.print("Game Constructor , i = " + i);
	}
}

class BoardGame extends Game{
	BoardGame(int i){
		super(i);
		Print.print("BoardGame Constructor, i = " + i);
		
	}
}
